import controller, sys

if len(sys.argv) == 3 :
  #normal call:
  #input:
  #  - inputLinesFilename
  #  - outputLinesFilename
  realLinesFilename = sys.argv[1]
  ourLinesFilename = sys.argv[2]
  controller.test(realLinesFilename, ourLinesFilename, 1)


else : 
  if len(sys.argv) == 2 :
    settingsFileName = sys.argv[1]
    print settingsFileName
    controller.setConfigFile("./settings/"+settingsFileName)
    controller.runParameterLoop()
    #controller.saveDatabaseFeatureHistogramsAsCSV();
    #controller.saveDatabaseFeaturesAsCSV()
    #controller.runAllNFold(10)
    #controller.runAll()
  else :
    controller.runParameterLoop()
    #controller.saveDatabaseFeatureHistogramsAsCSV();
    #controller.saveDatabaseFeaturesAsCSV()
    #controller.runAllNFold(10)
    #controller.runAll()
